@import "../../assets/style/variavles.less";

@like-size: 75px;

// 头部信息
.post-detail__top {
    display: flex;
    align-items: center;
    margin: @block-spacing;
}

.post-detail__user-avatar {
    width: 120px;
    height: 120px;
    background-color: @block-color;
}

.post-detail__info {
    flex: 1;
    margin: 0 @block-spacing;
}

.post-detail__user-name,
.post-detail__date {
    display: block;
}

.post-detail__user-name {
    color: @article-color;
}

.post-detail__date {
    font-size: 80%;
    color: @sub-text-color;
    font-size: 0.8 * @default-font-size;
}

.post-detail__folowing-button {
    font-size: 80%;
    padding: 0.5 * @block-spacing @block-spacing;
    text-align: center;
    border: 2px solid @article-color;
    color: @article-color;
}

.post-detail__images-container {
    margin: @block-spacing;
}

// 帖子描述
.post-detail__desc {
    margin: @block-spacing;
}

.post-detail__desc-article {
    color: @article-color;
}

// 点赞
.post-detail__like-wrapper {
    display: flex;
    margin: @block-spacing;
}

.post-detail__like-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: @like-size;
    height: @like-size;
    margin-right: @block-spacing;
    background-color: @block-color;
}

.post-detail__like-ico {
    width: 60%;
    height: 60%;
}

.post-detail__like-users {
    display: flex;
    flex: 1;
    overflow-y: scroll;
}

.post-detail__like-users-item {
    flex-shrink: 0;
    width: @like-size;
    height: @like-size;
    margin-right: @block-spacing;
}

.post-detail__like-total {
    padding: 0 0.5 * @block-spacing;
    height: @like-size;
    min-width: @like-size;
    line-height: @like-size;
    color: @article-color;
    text-align: center;
    background-color: @block-color;
}

// 评论
.post-detail__comment-item {
    display: flex;
    margin: @block-spacing @block-spacing 2 * @block-spacing;
}

.post-detail__comment-user-avatar {
    width: 90px;
    height: 90px;
}

.post-detail__comment-wrapper {
    flex: 1;
    margin-left: @block-spacing;
}

.post-detail__comment-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.post-detail__comment-user-name,
.post-detail__comment-date {
    color: @sub-text-color;
}

.post-detail__comment-date {
    font-size: 0.8 * @default-font-size;
}

.post-detail__comment-article {
    margin-top: 0.5 * @block-spacing;
}

// 个人评论
.post-detail__comment-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background-color: @block-color;
    border-top: 1px solid @border-color;
}

.post-detail__comment-input {
    flex: 1;
    margin-left: 2 * @block-spacing;
    padding: 0.5 * @block-spacing;
    background-color: #fff;
    border-radius: 5px;
}

.post-detail__comment-submit {
    padding: 2 * @block-spacing;
    color: @article-color;
}
